package com.yunwrite.playerlibrary.customplayer.videolist;

import android.media.MediaPlayer;
import android.os.Build;
import android.support.annotation.RequiresApi;

import com.yunwrite.playerlibrary.customplayer.player.CustomPlayer;
import com.yunwrite.playerlibrary.customplayer.player.CustomPlayerManager;

import java.io.IOException;

import static android.media.MediaPlayer.MEDIA_INFO_BAD_INTERLEAVING;
import static android.media.MediaPlayer.MEDIA_INFO_BUFFERING_END;
import static android.media.MediaPlayer.MEDIA_INFO_BUFFERING_START;
import static android.media.MediaPlayer.MEDIA_INFO_METADATA_UPDATE;
import static android.media.MediaPlayer.MEDIA_INFO_NOT_SEEKABLE;
import static android.media.MediaPlayer.MEDIA_INFO_SUBTITLE_TIMED_OUT;
import static android.media.MediaPlayer.MEDIA_INFO_UNKNOWN;
import static android.media.MediaPlayer.MEDIA_INFO_UNSUPPORTED_SUBTITLE;
import static android.media.MediaPlayer.MEDIA_INFO_VIDEO_RENDERING_START;
import static android.media.MediaPlayer.MEDIA_INFO_VIDEO_TRACK_LAGGING;

/**
 * @author liuping
 */
public class VideoInfoImp implements VideoInfo {
    private String url;
    /**
     * 私有化实例方法，
     */
    private VideoInfoImp() {
    }
    public VideoInfoImp(String url) {
        this.url = url;
    }

    /**
     * 获取播放地址
     * @return
     */
    @Override
    public String getUrl() {
        return url;
    }

    /**
     * 设置播放地址
     * @param url
     */
    public void setUrl(String url) {
        this.url = url;
    }
}
